package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    public PageResult pageQuery(QueryPageBean queryPageBean);
    public void add(Role role);
    Role findById(Integer id);
    void edit(Role role);
    List<Integer> permissionIdList(Integer id);
    Result delete(Integer id);
    List<Menu> findAllMenu();

    List<Integer> menuIdList(Integer id);
}
